﻿using System;
using System.ComponentModel;
using System.Web.UI;

namespace CSLive.Controls
{
    public class MapPoint
    {
        private string description = "";
        private string searchfor = "";
        private string title = "";

        [Bindable( true )]
        [DefaultValue( "0" )]
        [Localizable( true )]
        public long Lat { get; set; }

        [Bindable( true )]
        [DefaultValue( "0" )]
        [Localizable( true )]
        public long Long { get; set; }

        [Bindable( true )]
        [DefaultValue( "" )]
        [Localizable( true )]
        public string Title
        {
            get { return string.IsNullOrEmpty( title ) ? "" : title; }
            set { title = value; }
        }

        [Bindable( true )]
        [DefaultValue( "" )]
        [Localizable( true )]
        public string SearchFor
        {
            get { return string.IsNullOrEmpty( searchfor ) ? "" : searchfor; }
            set { searchfor = value; }
        }

        [Browsable( false )]
        [DefaultValue( "" )]
        [Localizable( true )]
        [PersistenceMode( PersistenceMode.EncodedInnerDefaultProperty )]
        public string Description
        {
            get { return string.IsNullOrEmpty( description ) ? "" : description; }
            set { description = value; }
        }
    }
}